package gui.client.frames;

import java.awt.GridBagLayout;
import java.awt.Dimension;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.Rectangle;

import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JLabel;
import javax.swing.JEditorPane;

public class JFlowerDescription extends JFrame {

	private static final long serialVersionUID = 1L;
	private JButton AddToShoppingCartButton = null;
	private JTextArea setAmountTextArea = null;
	private JLabel amountLabel = null;
	private JLabel selectedFlowerImageLabel = null;
	private JLabel selectedFlowerNameLabel = null;
	private JEditorPane descriptionEditorPane = null;
	
	private String descrition = null;
	private String title = null;
	private Icon image = null;
	/**
	 * This is the default constructor
	 */
	public JFlowerDescription() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		selectedFlowerNameLabel = new JLabel();
		selectedFlowerNameLabel.setBounds(new Rectangle(278, 24, 173, 24));
		selectedFlowerNameLabel.setText("");
		selectedFlowerImageLabel = new JLabel();
		selectedFlowerImageLabel.setBounds(new Rectangle(15, 22, 232, 233));
		selectedFlowerImageLabel.setText("");
		amountLabel = new JLabel();
		amountLabel.setBounds(new Rectangle(332, 270, 119, 23));
		amountLabel.setText("Amount :");
		this.setSize(578, 355);
		this.setLayout(null);
		this.setBackground(new Color(102, 102, 255));
		this.add(getAddToShoppingCartButton(), null);
		this.add(getSetAmountTextArea(), null);
		this.add(amountLabel, null);
		this.add(selectedFlowerImageLabel, null);
		this.add(selectedFlowerNameLabel, null);
		this.add(getDescriptionEditorPane(), null);
	}

	/**
	 * This method initializes AddToShoppingCartButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getAddToShoppingCartButton() {
		if (AddToShoppingCartButton == null) {
			AddToShoppingCartButton = new JButton();
			AddToShoppingCartButton.setBounds(new Rectangle(332, 303, 160, 26));
			AddToShoppingCartButton.setText("Add to Shopping Cart");
		}
		return AddToShoppingCartButton;
	}

	/**
	 * This method initializes setAmountTextArea	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getSetAmountTextArea() {
		if (setAmountTextArea == null) {
			setAmountTextArea = new JTextArea();
			setAmountTextArea.setBounds(new Rectangle(461, 270, 31, 23));
			setAmountTextArea.setText("0");
		}
		return setAmountTextArea;
	}

	/**
	 * This method initializes descriptionEditorPane	
	 * 	
	 * @return javax.swing.JEditorPane	
	 */
	private JEditorPane getDescriptionEditorPane() {
		if (descriptionEditorPane == null) {
			descriptionEditorPane = new JEditorPane();
			descriptionEditorPane.setBounds(new Rectangle(277, 61, 280, 186));
			descriptionEditorPane.setBackground(new Color(102, 102, 255));
			descriptionEditorPane.setEditable(false);
			descriptionEditorPane.setText("Description : \n");
			descriptionEditorPane.setEditable(false);
		}
		return descriptionEditorPane;
	}

}  //  @jve:decl-index=0:visual-constraint="11,9"
